package hn.cch.dynamic;

public class DynamicDataBase {

    private static final ThreadLocal<String> key = new ThreadLocal<>();

    public static String getDataSourceKey(){
        return key.get();
    }

    public static void setDataSourceKey(String dataSourceKey) {
        key.set(dataSourceKey);
    }

    public static void removeDataSourceKey() {
        key.remove();
    }
}
